@(utilisateur: Utilisateur, optionArticles: List[OptionArticle], optionArticleForm: Form[OptionArticle])

@import helper._

@main("Catalogue web", utilisateur) {
 
    
    <h1>@optionArticles.size() option(s) article(s)</h1>
    
    <ul>
        @for(optionArticle <- optionArticles) {
            <li>
                @optionArticle.libelle_OptionArticle
                
                @optionArticle.valeur_OptionArticle
                
                @form(routes.OptionArticleCont.deleteOptionArticle(optionArticle.id_OptionArticle)) {
                    <input type="submit" value="Delete">
                }
            </li>
        }
    </ul>
    
    <h2>Add a new option article</h2>
    
    @form(routes.OptionArticleCont.newOptionArticle()) {
        
        @inputText(optionArticleForm("libelle_OptionArticle")) 
    
        @inputText(optionArticleForm("valeur_OptionArticle")) 

        <input type="submit" value="Create">
    }
    
}